package com.avic.controller.feign.client;

import com.avic.controller.feign.client.request.CreateSystemLogReq;
import com.avic.controller.feign.client.result.CreateSystemLogRes;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author huangsheng
 * @Date 2018/10/26 17:29
 */
@FeignClient(name = "system-service", fallback = SystemServiceFeignClientFallback.class)
public interface SystemServiceFeignClient {

    /**
     * 新增系统日志
     *
     * @param createSystemLogReq
     * @return
     */
    @RequestMapping(value = "/system/log/feign", method = RequestMethod.POST)
    CreateSystemLogRes createSystemLog(@RequestBody CreateSystemLogReq createSystemLogReq);
}
